.class Lcom/openfeint/internal/ui/WebNav$3;
.super Lcom/openfeint/internal/ui/WebViewCacheCallback;
.source "WebNav.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/openfeint/internal/ui/WebNav;->load(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/openfeint/internal/ui/WebNav;

.field private final synthetic val$reload:Z


# direct methods
.method constructor <init>(Lcom/openfeint/internal/ui/WebNav;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/openfeint/internal/ui/WebNav$3;->this$0:Lcom/openfeint/internal/ui/WebNav;

    iput-boolean p2, p0, Lcom/openfeint/internal/ui/WebNav$3;->val$reload:Z

    .line 162
    invoke-direct {p0}, Lcom/openfeint/internal/ui/WebViewCacheCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public failLoaded()V
    .locals 1

    .prologue
    .line 177
    iget-object v0, p0, Lcom/openfeint/internal/ui/WebNav$3;->this$0:Lcom/openfeint/internal/ui/WebNav;

    #calls: Lcom/openfeint/internal/ui/WebNav;->closeForDiskError()V
    invoke-static {v0}, Lcom/openfeint/internal/ui/WebNav;->access$1(Lcom/openfeint/internal/ui/WebNav;)V

    .line 178
    return-void
.end method

.method public pathLoaded(Ljava/lang/String;)V
    .locals 4
    .parameter "itemPath"

    .prologue
    .line 165
    iget-object v1, p0, Lcom/openfeint/internal/ui/WebNav$3;->this$0:Lcom/openfeint/internal/ui/WebNav;

    iget-object v1, v1, Lcom/openfeint/internal/ui/WebNav;->mWebView:Landroid/webkit/WebView;

    if-eqz v1, :cond_0

    .line 166
    invoke-static {p1}, Lcom/openfeint/internal/ui/WebViewCache;->getItemUri(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 167
    .local v0, url:Ljava/lang/String;
    const-string v1, "WebUI"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Loading URL: "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/openfeint/internal/OpenFeintInternal;->log(Ljava/lang/String;Ljava/lang/String;)V

    .line 168
    iget-boolean v1, p0, Lcom/openfeint/internal/ui/WebNav$3;->val$reload:Z

    if-eqz v1, :cond_1

    .line 169
    iget-object v1, p0, Lcom/openfeint/internal/ui/WebNav$3;->this$0:Lcom/openfeint/internal/ui/WebNav;

    iget-object v1, v1, Lcom/openfeint/internal/ui/WebNav;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->reload()V

    .line 174
    .end local v0           #url:Ljava/lang/String;
    :cond_0
    :goto_0
    return-void

    .line 171
    .restart local v0       #url:Ljava/lang/String;
    :cond_1
    iget-object v1, p0, Lcom/openfeint/internal/ui/WebNav$3;->this$0:Lcom/openfeint/internal/ui/WebNav;

    iget-object v1, v1, Lcom/openfeint/internal/ui/WebNav;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v1, v0}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    goto :goto_0
.end method
